﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IocWcfService.Domain.Provider;
using IocWcfService.Dto.TestDto;
using IocWcfService.IServices.Test;

namespace IocWcfService.Services.Test
{
    public class TestProviderService : ITestProviderService
    {

        private ITestProvider provider;

        public TestProviderService(ITestProvider provider)
        {
            if (provider==null)
            {
                throw new ArgumentNullException("provider");
            }

            this.provider = provider;
        }

        public TestOutput[] GetList()
        {
           return provider.GetList().ToArray();
        }
    }
}
